//
//  UIColor+Mac.m
//  MUBATE
//
//  Created by sunbin on 2017/2/14.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import "UIColor+Mac.h"

@implementation UIColor (Mac)

+ (UIColor *)PopOverMenuBackColor{
    return [UIColor colorWithHexString:@"FAFAFA"];
}

/**
 *  程序按钮禁止点击状态背景颜色
 */
+ (UIColor *)appBtnStateDisabledBackgroundColor{
    return [UIColor colorWithHexString:@"ffffff"];
}
/**
 *  程序按钮常态下背景颜色
 */
+ (UIColor *)appBtnStateNormalBackgroundColor{
    return [UIColor colorWithHexString:@"208dcf"];
}
/**
 *  程序按钮禁止点击状态文字颜色
 */
+ (UIColor *)appBtnStateDisabledTitleColor{
    return [UIColor colorWithHexString:@"cccccc"];
}
/**
 *  程序按钮常态下文字颜色
 */
+ (UIColor *)appBtnStateNormalTitleColor{
    return [UIColor colorWithHexString:@"ffffff"];
}


/**
 *  登录成册按钮常态下文字颜色
 */
+ (UIColor *)BtnStateDisabledBackgroundColor{
    return [UIColor colorWithHexString:@"ffffff"];
}

/**
 *  登录成册按钮常态下文字颜色
 */
+ (UIColor *)BtnStateNormalBackgroundColor{
    return [UIColor colorWithHexString:@"208dcf"];
}

/**
 *  登录成册按钮常态下文字颜色
 */
+ (UIColor *)BtnStateDisabledTitleColor{
    return [UIColor colorWithHexString:@"cccccc"];
}

/**
 *  登录成册按钮常态下文字颜色
 */
+ (UIColor *)BtnStateNormalTitleColor{
    return [UIColor colorWithHexString:@"ffffff"];
}






// 注册 登录页 提示文字颜色
+ (UIColor *)alertTextColor{
    return [UIColor colorWithHexString:@"ffffff"];
}



// 文本输入框 左侧视图 文字颜色
+ (UIColor *)leftTextColor{
    return [UIColor colorWithHexString:@"ffffff"];
}

// 文本输入框 文本颜色
+ (UIColor *)bodyTextColor{
    return [UIColor colorWithHexString:@"ffffff"];
}

// 文本输入框 占位图颜色
+ (UIColor *)PlaceholderColor{
    return [UIColor colorWithHexString:@"ffffff"];
}

+ (UIColor *)activityIndicatorColor{
    return [UIColor colorWithHexString:@"ffffff"];
}


+ (UIColor *)noPlayComplecountDownBackgroundColor_Normal_Launch{
    return [UIColor clearColor];

}
+ (UIColor *)noPlayComplecountDownBorderColor_Normal_Launch{
    return [UIColor colorWithHexString:@"999999"];
}

+ (UIColor *)PlayComplecountDownBackgroundColor_Normal_Launch{
    return [UIColor colorWithHexString:@"208dcf"];
};



+ (UIColor *)appLeftTextColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)aPPBodyTextColor{
    return [UIColor colorWithHexString:@"208dcf"];

}
+ (UIColor *)appPlaceholderColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)appViewViewForHeaderInSection{
    return [UIColor colorWithHexString:@"ffffff"];
}
+ (UIColor *)appNavigationBarColor{
    return [UIColor colorWithHexString:@"000000"];
}


+ (UIColor *)viewForHeaderInSectionColor{
    return [UIColor colorWithHexString:@"ffffff"];
}

+ (UIColor *)appCellColor{
    return [UIColor colorWithHexString:@"ffffff"];
}


+ (UIColor *)appRecordTySelectColor{
    return [UIColor colorWithHexString:@"ffffff"];

}

+ (UIColor *)appRecordTyNormal{
    return [UIColor colorWithHexString:@"ffffff"];

}



+ (UIColor *)appLeftViewBackgroundColor{
    return [UIColor colorWithHexString:@"ffffff"];
}



+ (UIColor *)appLeftHeadViewBackgroundColor{
    return [UIColor colorWithHexString:@"000000"];

}

+ (UIColor *)appSeparatorColor{
    return [UIColor colorWithHexString:@"000000"];
}

//主题颜色
+ (UIColor *)themeColor{
    return [UIColor colorWithHexString:@"ffffff"];
}








+ (UIColor *)NSCirclegradient{
    return [UIColor colorWithHexString:@"1074b9"];
}


+ (UIColor *)NMCirclegradientFromCGrect:(CGRect)rect{
    
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[12] = {1.0,1.0,0.97,1.0,0.24,0.83,0.95,1.0,0.76,0.90,0.98,0.1};
    CGFloat locations[3] = {0.0,0.63,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 3);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
    
    
}


+ (UIColor *)NBCirclegradientFromCGrect:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {0.03,0.33,0.55,1.0,0.14,0.43,0.6,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
    
    
}








+ (UIColor *)SSCirclegradient:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {0.11,0.43,0.65,1.0,0.26,0.58,0.75,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
}

+ (UIColor *)SMCirclegradientFromCGrect:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {0.76,0.91,0.57,1.0,0.91,0.97,0.83,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
}
+ (UIColor *)SBCirclegradientFromCGrect:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {0.14,0.4,0.58,1.0,0.18,0.44,0.6,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
}


+ (UIColor *)NWBCirclegradientFromCGrect:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {0.09,0.39,0.61,1.0,0.18,0.50,0.68,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
    
    
    
}

+ (UIColor *)SGWBCirclegradientFromCGrect:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {1,0.65,0.19,1.0,0.95,0.89,0.77,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
    
}
+ (UIColor *)SXWBCirclegradientFromCGrect:(CGRect)rect{
    CGSize size = rect.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0);
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    
    CGFloat components[8] = {0.47,0.89,1.0,1.0,0.37,0.68,0.38,1.0};
    CGFloat locations[2] = {0.0,1.0};//从哪个位置开始到结束颜色
    
    CGGradientRef gradient=CGGradientCreateWithColorComponents(colorSpace, components, locations, 2);
    
    CGContextClipToRect(context, CGRectMake(0, 0, rect.size.width,rect.size.height));
    CGContextDrawLinearGradient(context, gradient, CGPointMake(0.0, 0.0), CGPointMake(rect.size.width, rect.size.height), kCGGradientDrawsAfterEndLocation);
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    CGColorSpaceRelease(colorSpace);
    CGGradientRelease(gradient);
    UIGraphicsEndImageContext();
    
    return [UIColor colorWithPatternImage:image];
    
}























//财务报告
// 线的颜色 数值 颜色 x轴上的数据
+ (UIColor *)lineColor{
    return [UIColor grayColor];
}
+ (UIColor *)lineDataColor{
    return [UIColor blackColor];
}
+ (UIColor *)lineXValueColor{
    return [UIColor yellowColor];

}

+ (UIColor *)PointType_Circel{
    return [UIColor blackColor];
    
}






//表的头部颜色
+ (UIColor *)chartHeadColor{
    return [UIColor blackColor];
}
// 弹框菜单选择日期项背景色
+ (UIColor *)PopOverMenuBackTextColor;
{
    return [UIColor whiteColor];

}
//饼图
+ (UIColor *)pieChartColor1{
    return [UIColor yellowColor];

}
+ (UIColor *)pieChartColor2{
    return [UIColor grayColor];

}
+ (UIColor *)pieChartColor3{
    return [UIColor greenColor];

}


//进度条颜色 动态进度条颜色 静态背景颜色
+ (UIColor *)trackTintColor{
    return [UIColor redColor];
}
+ (UIColor *)progressTintColor{
    return [UIColor grayColor];

}

+ (UIColor *)roundColor{
    return [UIColor grayColor];

}
+ (UIColor *)roundDefBoardColor{
    return [UIColor whiteColor];

}
+ (UIColor *)roundSelectBoardColor{
    return [UIColor redColor];

}
+ (UIColor *)progressBarTextColor{
    return [UIColor blackColor];

}















//左侧视图
+ (UIColor *)leftViewBackGroundColor{
    return [UIColor colorWithHexString:@"ffffff"];

}
+ (UIColor *)leftCellBackGroundColor{
    return [UIColor colorWithHexString:@"ffffff"];

}

+ (UIColor *)leftCellTextColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)leftHeadViewBackGroundColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)leftHeadViewNickColor{
    return [UIColor colorWithHexString:@"ffffff"];

}

//商户中心
+ (UIColor *)businessCenterCellBackGroundColor{
    return [UIColor colorWithHexString:@"ffffff"];

}

+ (UIColor *)businessCenterCellTextColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)businessCenterCellDetailTextLabelColor{
    return [UIColor colorWithHexString:@"3c3c3c"];

}
+ (UIColor *)businessCenterTextFileBackGroundColor{
    return [UIColor colorWithHexString:@"ffffff"];

}
+ (UIColor *)businessCenterTextFileLeftTextColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)businessCenterTextFileTextColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)businessCenterPlaceTextColor{
    return [UIColor colorWithHexString:@"000000"];

}
+ (UIColor *)businessCenterAlertTextColor{
    return [UIColor colorWithHexString:@"000000"];

}



@end
